package com.ysqcould.approval.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 资讯对象 t_information
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class Information extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 标签，多个以分号分隔 */
    @Excel(name = "标签，多个以分号分隔")
    private String tags;

    /** 附图地址，多张用；分隔 */
    @Excel(name = "附图地址，多张用；分隔")
    private String pcUrl;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long creatorId;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contacts;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 联系地址 */
    @Excel(name = "联系地址")
    private String address;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long browseNumber;

    /** 点赞人数 */
    @Excel(name = "点赞人数")
    private Long giveNumber;

    /** 收藏人数 */
    @Excel(name = "收藏人数")
    private Long collectNumber;

    /** 审批人id */
    @Excel(name = "审批人id")
    private Long approverId;

    /** 审批状态：0审批中，1通过，2驳回，3撤销 */
    @Excel(name = "审批状态：0审批中，1通过，2驳回，3撤销")
    private Long checkStatus;

    /** 驳回理由 */
    @Excel(name = "驳回理由")
    private String rejectReason;

    /** 抄送人id多人用；分隔 */
    @Excel(name = "抄送人id多人用；分隔")
    private String copyId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setPcUrl(String pcUrl) 
    {
        this.pcUrl = pcUrl;
    }

    public String getPcUrl() 
    {
        return pcUrl;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setBrowseNumber(Long browseNumber) 
    {
        this.browseNumber = browseNumber;
    }

    public Long getBrowseNumber() 
    {
        return browseNumber;
    }
    public void setGiveNumber(Long giveNumber) 
    {
        this.giveNumber = giveNumber;
    }

    public Long getGiveNumber() 
    {
        return giveNumber;
    }
    public void setCollectNumber(Long collectNumber) 
    {
        this.collectNumber = collectNumber;
    }

    public Long getCollectNumber() 
    {
        return collectNumber;
    }
    public void setApproverId(Long approverId) 
    {
        this.approverId = approverId;
    }

    public Long getApproverId() 
    {
        return approverId;
    }
    public void setCheckStatus(Long checkStatus) 
    {
        this.checkStatus = checkStatus;
    }

    public Long getCheckStatus() 
    {
        return checkStatus;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setCopyId(String copyId) 
    {
        this.copyId = copyId;
    }

    public String getCopyId() 
    {
        return copyId;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("asId", getAsId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("tags", getTags())
            .append("pcUrl", getPcUrl())
            .append("creatorId", getCreatorId())
            .append("contacts", getContacts())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("browseNumber", getBrowseNumber())
            .append("giveNumber", getGiveNumber())
            .append("collectNumber", getCollectNumber())
            .append("approverId", getApproverId())
            .append("checkStatus", getCheckStatus())
            .append("rejectReason", getRejectReason())
            .append("copyId", getCopyId())
            .append("publishTime", getPublishTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
